package cn.sso.app.client.example.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.annotation.SaMode;
import cn.ifloat.brick.sprofile.web.common.BasicController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @author: float 2023/1/12 09:55
 */
@Controller
@RequestMapping("project")
public class ProjectController extends BasicController {

    @RequestMapping("list")
    @SaCheckPermission(value = "abc" ,orRole = "vvvvv",mode= SaMode.OR)
//    @SaCheckRole("vvvvv")
    public String list(Model model){
        return "project/list";
    }

    @RequestMapping("form")
    public String form(){
        return "project/form";
    }

}


